<?
include_once('common.php');

//$stories = ((int)$include_articles) ? topic_getRelatedStories($topic_name, $topic_id, $start_time_articles, $end_time_articles, $sort_articles, $offset, $limit_articles, $include_scores_articles) : null;
$stories = ((int)$include_stories) ? topic_getRelatedStories($topic_name, $topic_id, $start_time_stories, $end_time_stories, $sort_stories, $offset, $limit_stories, $include_scores_stories) : null;	

$images = ((int)$include_images) ? topic_getRelatedImages($topic_name, $topic_id, $start_time_images, $end_time_images, $sort_images, $offset, $limit_images, $include_publication_images, $filter_id_images) : null;
	
$topics = ((int)$include_connections) ? topic_getRelatedTopics($topic_name, $topic_id, $start_time, $end_time, $sort_connections, $offset, $limit_connections, $include_topic_type_connections, $include_image_connections) : null;
	
$quotes = ((int)$include_quotes) ? topic_getRelatedQuotes($topic_name, $topic_id, $start_time_quotes, $end_time_quotes, $sort_quotes, $offset, $limit_quotes) : null;

#rendering sample HTML
renderHTML($topic_info, $stories, $images, $topics, $quotes);

?>

